<!-- BEGIN PAGE HEADER-->
<?php $this->load->view('partials/breadcrumb.tpl', Array('_BTN_GROUP'=>Array('name'=>'返回', 'url'=>site_url($thisModule.$thisController))))?>
<!-- END PAGE HEADER-->
<script type="text/javascript">
function toggleStatusConfirm(url){
	if(!confirm("确定要改变用户状态吗？")){
		return false;
	}
	window.location.href = url;
	return true;
}
</script>
<!-- BEGIN PAGE CONTENT-->
<div class="row">
	<div class="col-xs-12 ">
		<!-- BEGIN SAMPLE FORM PORTLET-->
		<div class="portlet box green ">
			<?=edit_form_caption(l($thisMethod).'玩家')?>
			<div class="portlet-body form">
				<div class="form-horizontal">
					<div class="form-body">
						<div class="form-group">
							<label class="col-xs-3 control-label">玩家ID</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=$user->id?></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">账号</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=$user->account?></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">状态</label>
							<div class="col-xs-4" style="padding: 6px 12px;">

								<?php if($user->status == 0){ ?>
									禁用&nbsp;&nbsp;
									<button type="button" class="btn blue btn-sm" onclick="javascript:void(toggleStatusConfirm('/usermanage/user/toggleStatus/<?php echo $user->id ?>/<?php echo $user->update_time ?>'))">启用</button> 
								<?php }else{ ?>
									启用&nbsp;&nbsp;
									<button type="button" class="btn blue btn-sm" onclick="javascript:void(toggleStatusConfirm('/usermanage/user/toggleStatus/<?php echo $user->id ?>/<?php echo $user->update_time ?>'))" >禁用</button>		
								<?php } ?>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">修改密码</label>
							<div class="col-xs-4" style="padding: 6px 12px;">

							<a style="border-bottom: dashed 1px #0088cc;color: #5b9bd1;text-decoration: none;" href="javascript:ioss_url_modal('<?=site_url($thisModule. $thisController. '/changePass/'.$user->id.'/'.$user->update_time)?>');"  data-original-title=""> 
									修改 </a></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">邮箱</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=$user->email?></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">微信</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=$user->weixin?></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">QQ</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=$user->qq?></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">注册时间</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=date('Y-m-d H:i:s',$user->create_time)?></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">注册IP</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=$user->reg_ip?></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">最后登录</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=date('Y-m-d H:i:s',$user->login_time)?></div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">登录IP</label>
							<div class="col-xs-4" style="padding: 6px 12px;"><?=$user->login_ip?></div>
						</div>
						
						<?php if($bankInfo){ ?>
							<div class="form-group">
								<label class="col-xs-3 control-label">银行卡</label>
								<div class="col-xs-4" style="padding: 6px 12px;"><?=$bankInfo->card_name?>&nbsp;&nbsp;<a style="border-bottom: dashed 1px #0088cc;color: #5b9bd1;text-decoration: none;" href="javascript:ioss_url_modal('<?=site_url($thisModule. $thisController. '/deleteBank/'.$user->id)?>');" data-original-title="">详细</a></div>
								
							</div>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
		<!-- END SAMPLE FORM PORTLET-->
		<!-- BEGIN SAMPLE FORM PORTLET-->
	</div>
</div>
<!-- END PAGE CONTENT-->
<link href="<?=image_url('/static/assets/global/plugins/jstree/dist/themes/default/style.min.css')?>" rel="stylesheet" type="text/css"/>

